import random
from collections import Counter

random_a = []
for _ in range(100):
    random_a = random.randint(0,9)
    random_a.append(random_a)


average = sum(random_a) / len(random_a)
c = Counter(random_a).most_common()

print("平均值", average)
print("字数出现次数:")
for c, count in c:
    print()
